//
//  CharacterNode.h
//  iFly
//
//  Created by User-10 on 12/7/14.
//  Copyright (c) 2014 TeamDifferent. All rights reserved.
//

#import <SpriteKit/SpriteKit.h>

@interface CharacterNode : SKSpriteNode

@property(nonatomic) NSInteger lives;
@property NSUInteger characterScore;

@property SKEmitterNode* smokeEmitter;
@property SKSpriteNode* shield;

@property BOOL isRefreshEnabled;
@property BOOL isShootingWithLeft;
@property BOOL isForward;
@property BOOL isDead;

+(instancetype) characterWithPosition:(CGPoint) position inScene:(SKScene*) scene;
-(void) initialSetLives:(NSInteger) lives;

//movement methods
-(void) moveBackwards;
-(void) moveForward;
-(void) flyToTheBossScene;

//shooting and getting hit
-(void) shoot;
-(void) wasHit;
-(void) wasHealed;

//shield methods
-(void) activateShield;
-(void) deactivateShield;

//score methods
-(void) addScore:(NSInteger) score;
-(void) healthBarUpdate;


@end
